package net.wanho.controller;

import net.wanho.service.GoodsService;
import net.wanho.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：汤小洋
 * Date：2025-09-22 11:29
 * Description：<描述>
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Autowired
    private GoodsService goodsService;

    @GetMapping
    public R findAll(){
        return R.success(goodsService.list());
    }

}
